rebased cmake updates (#147)
authorSteven G. Johnson <stevenj@mit.edu>
Sat, 30 Mar 2019 17:37:34 +0000 (13:37 -0400)
committerGitHub <noreply@github.com>
Sat, 30 Mar 2019 17:37:34 +0000 (13:37 -0400)
commit5ae11afe8f0d5cbffdac742b0b1164a31af99b83
tree356aa4b09ed2ab47ca9b61a6066ec313ea8347eb
parent089a3af7eee09a7b0613b01a9d3dd739936988e0
rebased cmake updates (#147)

* Use a target property instead of CMAKE_C_FLAGS

It is a global property, which is not great when importing utf8proc in other CMake projects.

* Use target properties instead of add_definitions

It modifies builds settings globally, which is not great when using
the library as part of a bigger CMake build

* Expose header search path with target_include_directories

This makes it possible to use utf8proc in a larger CMake based project
with

add_subdirectory(utf8proc)
target_link_libraries(my_app utf8proc)

* more rebase fixes
CMakeLists.txt